(C) 1996 AROS - The Amiga Replacement OS
NAME
#include <unistd.h>
int close()
SYNOPSIS
int fd
FUNCTION
Closes an open file. If this is the last file descriptor associated with this file, then all allocated resources are freed, too.
INPUTS
fd
The result of a successful open()
RESULT
-1 for error or zero on success.
NOTES
EXAMPLE
BUGS
SEE ALSO
open()
,
read()
,
write()
,
fopen()
INTERNALS
HISTORY
02.04.1997 ldp
Add BPTR casts
15.01.1997 digulla
Added functions for basic I/O (open, creat, close, read, write). Untested.